/**
 * Created by JLB1 on 2017/1/20.
 */
import React, {Component, PropTypes} from 'react'
import ReactDOM from "react-dom"
import Tools from "../../lib/tools"
import { addErrorListener } from "../../lib/handleError"
import weixinShare from "../../lib/weixinShare"
import AJAX from "../../lib/ajax"
require('../../lib/rem')
require('../../styles/common.less');
require('./NoPcode.less')

class NotFindPcode extends Component {
    constructor(props) {
        super(props)

    }
    componentWillMount() {
        addErrorListener()()
        weixinShare.hideAll()
    }

    componentDidMount() {
        AJAX.appendBaiduAnalysis()
    }
    render() {
        const nopcode = Tools.getParams().nopcode;
        const cburi = Tools.getParams().cburi;

        return (
            <div>
                <div className="notFindPcodeInfo">
                    <h3>您可以再试试下面两种方式：</h3>
                    <p>如未收到短信验证码，请检查第三方软件拦截或者联系运营商。</p>
                    <p>如未收到电话验证码，请不到屏蔽陌生来电，同时注意接听400-0052-708电话。</p>
                </div>
                <div className="getPcodeBox">
                    <div className="btnBox">
                        <a className="weui-btn weui-btn_yellow" href={"./"+cburi+"?nopcode="+nopcode+'&voice_verify=1'}>电话获取验证码</a>
                    </div>
                    <p className="orLine"> <i/><span className="or">or</span><i/></p>
                    <div className="btnBox">
                        <a className="weui-btn weui-btn_yellow" href={"./"+cburi+"?nopcode="+nopcode+'&voice_verify=0'}>短信获取验证码</a>
                    </div>


                </div>

            </div>
        )
    }
}
ReactDOM.render(<NotFindPcode/>, document.getElementById('app'));
if (module.hot) {
    module.hot.accept();
}

